package com.mzj.saas.mservice.sys.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/*
 *公告管理表
 */
@Entity
@Table(name = "saas_feedback")
public class Feedback extends IdEntity {
        /*
        *用户id
        */
        @Column(name = "user_id", nullable = true)
        private String userId;
        /*
        *意见反馈图
        */
        @Column(name = "img", nullable = true)
        private String img;
        /*
        *内容
        */
        private String content;
        /*
        *用户名
        */
        @Column(name = "user_name", nullable = true)
        private String userName;
        /*
        *发布时间
        */
        @Column(name = "release_time", nullable = true)
        private Date releaseTime;
        /*
        *用户类型：1APP 2小程序
         */
        @Column(name = "type", nullable = true)
        private Integer type;
        /*
         *消息状态：0未读 1已读
         */
        @Column(name = "status", nullable = true)
        private Integer status;

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public Integer getType() {
            return type;
        }

        public void setType(Integer type) {
            this.type = type;
        }

        public Feedback() {
        }

        public Feedback(String userId, String img, String content, String userName, Date releaseTime) {
            this.userId = userId;
            this.img = img;
            this.content = content;
            this.userName = userName;
            this.releaseTime = releaseTime;
        }

        /**
         * 获取
         * @return userId
         */
        public String getUserId() {
            return userId;
        }

        /**
         * 设置
         * @param userId
         */
        public void setUserId(String userId) {
            this.userId = userId;
        }

        /**
         * 获取
         * @return img
         */
        public String getImg() {
            return img;
        }

        /**
         * 设置
         * @param img
         */
        public void setImg(String img) {
            this.img = img;
        }

        /**
         * 获取
         * @return content
         */
        @Column(name = "content", nullable = true,columnDefinition = "TEXT")
        public String getContent() {
            return content;
        }

        /**
         * 设置
         * @param content
         */
        public void setContent(String content) {
            this.content = content;
        }

        /**
         * 获取
         * @return userName
         */
        public String getUserName() {
            return userName;
        }

        /**
         * 设置
         * @param userName
         */
        public void setUserName(String userName) {
            this.userName = userName;
        }

        /**
         * 获取
         * @return releaseTime
         */
        public Date getReleaseTime() {
            return releaseTime;
        }

        /**
         * 设置
         * @param releaseTime
         */
        public void setReleaseTime(Date releaseTime) {
            this.releaseTime = releaseTime;
        }

        public String toString() {
            return "Feedback{userId = " + userId + ", img = " + img + ", content = " + content + ", userName = " + userName + ", releaseTime = " + releaseTime + "}";
        }
}
